<?php error_reporting(0); session_start(); include('include/function.php');?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>FMS :: Fleet Management System</title>

<link href="css/style.css" rel="stylesheet" type="text/css" />

<link href="css/menu_style.css" rel="stylesheet" type="text/css" />

<link href="css/ui.all.css" rel="stylesheet" type="text/css" />

<link rel="Shortcut Icon" type="image/x-icon" href="images/favicon.ico">

<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript" src="js/jqueryui.js"></script>

<!--<script type="text/javascript" src="js/adminmenu.js"></script>-->

<script type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript" src="js/jconfirmaction.jquery.js"></script>

<script type="text/javascript" src="js/jquery.maskedinput-1.2.2.js"></script>

<script type="text/javascript">

	$(document).ready(function() {

		$('.ask').jConfirmAction();

	});

	$(function(){

		// striped table

		$(".tableform tr:nth-child(even)").addClass("rowhighlight");

		$("form table tr:nth-child(even)").addClass("rowhighlight");

		$(".datatable tr:nth-child(even)").addClass("rowhighlight");

		$("form table tr:nth-child(even)").addClass("rowhighlight");

   });

	jQuery(function($){

   		$("#ip").mask("999.99.999.999 / 999.99.999.999");

		$(".jam").mask("99:99");

   });

</script>

<SCRIPT language=JavaScript>

var win = null;

function NewWindow(mypage,myname,w,h,scroll){

LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;

TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

settings =

'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable,menubar=yes'

win = window.open(mypage,myname,settings)

}

</SCRIPT>

<?php include('js/menu_js.php');?>

<style media="print">

body {

	background:#FFFFFF;

}

.hide, #mynotes, #topnav, #welcome, #logo_container, #navigation, #box-exportdata, #footer {

	display:none;

}

</style>

</head>

<body>

<div id="mynotes"><textarea id="mynotesbox" rows="15" cols="80">The Shortcut :: Your Accounting Shortcut</textarea><br /><input type="button" value="Save" id="savenotes" /></div>

<div id="topnav">

  <div id="welcome"><?php if(isset($_SESSION[admin])) { ?>Welcome ,  <strong><?php echo ucfirst($_SESSION[admin]);?></strong>&nbsp;&nbsp; [ <a href="logout.php" title="Logout">Logout</a> ]<?php }else{ ?>&nbsp;<?php } ?></div>

  <div id="date"><?php echo date("l - d M Y");?></div>

<div class="clear"></div>

</div>

<div id="logo_container"><a href="index.php"><!--<img class="banner" src="images/my_logo.png" alt="WHMCS" width="400" height="115" border="0" />-->Index</a>

</div>

<?php if(isset($_SESSION[admin])) { ?>

<div id="navigation">

  <!--<ul>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu1, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Setting">Setting</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu2, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Data">Data<sup>2</sup></a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu3, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Buku Besar">Buku Besar </a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu4, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Kas / Bank">Kas/Bank</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu5, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Persediaan">Persediaan</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu6, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Pembelian">Pembelian</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu7, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Penjualan">Penjualan</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu8, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Laporan">Laporan</a></li>

    <li class="navbutton" onmouseover="this.className='navbuttonover';dropdownmenu(this, event, menu9, '');" onmouseout="this.className='navbutton';delayhidemenu();"><a href="#" title="Copyright">Copyright</a></li>

  </ul>-->

<ul class="menuH decor1" style="border:none;">

<?php if(strstr($_SESSION[akses],"A-1") OR strstr($_SESSION[akses],"A-2") OR strstr($_SESSION[akses],"A-4") OR strstr($_SESSION[akses],"PD-7") OR strstr($_SESSION[akses],"A-3") OR strstr($_SESSION[akses],"D-1") OR strstr($_SESSION[akses],"D-2") OR strstr($_SESSION[akses],"D-3") OR strstr($_SESSION[akses],"D-4") OR strstr($_SESSION[akses],"D-5") OR strstr($_SESSION[akses],"PD-3") OR strstr($_SESSION[akses],"PD-4") OR strstr($_SESSION[akses],"PD-5")) { ?>

<li class="root-menu"><a href="#" class="arrow-root">Setting</a>

<ul>

	<?php if(strstr($_SESSION[akses],"A-1")) { ?>

    <li><a href="index.php?component=user"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Set Username / Password</a></li>

	<?php } ?>

	<?php if(strstr($_SESSION[akses],"A-4")) { ?>

    <li><a href="index.php?component=perusahaan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Tentang Perusahaan</a></li>

	<?php } ?>

	<?php if(strstr($_SESSION[akses],"PD-7")) { ?>

    <li><a href="index.php?component=gudang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Lokasi Kantor</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"A-2")) { ?>

    <li><a href="index.php?component=budgeting"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Set Budgeting</a></li>

	<?php } ?>

    <?php if(strstr($_SESSION[akses],"A-3") OR strstr($_SESSION[akses],"D-1")) { ?>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Manage Akun</a>

    	<ul>

        <?php if(strstr($_SESSION[akses],"A-3")) { ?>

        <li><a href="index.php?component=klasifikasiakun"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Klasifikasi Akun</a></li>

		<?php if(strstr($_SESSION[akses],"DD-1")) { ?>

        <li><a href="index.php?component=akun"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Akun</a></li>

		<?php } ?>

		<?php } ?>

        </ul>

    </li>

    <?php } ?>

	<?php if(strstr($_SESSION[akses],"DD-2")) { ?>

    <li><a href="index.php?component=kontak" class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Kontak</a>

    	<ul>

        <li><a href="index.php?component=kontak&cr_klas=Karyawan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Karyawan</a></li>

        <li><a href="index.php?component=kontak&cr_klas=Supplier"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Supplier</a></li>

        <li><a href="index.php?component=kontak&cr_klas=Customer"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Customer</a></li>

        <li><a href="index.php?component=kontak&cr_klas=Asuransi"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Asuransi</a></li>

        <li><a href="index.php?component=kontak&cr_klas=Bengkel"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Bengkel Rekanan</a></li>

        </ul>

    </li>

	<?php } ?>

    <?php if(strstr($_SESSION[akses],"DD-3") OR strstr($_SESSION[akses],"DD-4") OR strstr($_SESSION[akses],"DD-5")) { ?>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Aset Perusahaan</a>

    	<ul>

        <?php if(strstr($_SESSION[akses],"DD-3")) { ?>

        <li><a href="index.php?component=golonganaset"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Golongan Aset</a></li>

		<?php } ?>

		<?php if(strstr($_SESSION[akses],"DD-4")) { ?>

        <li><a href="index.php?component=asetperusahaan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Aset Tetap Perusahaan</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"DD-5")) { ?>

        <li><a href="index.php?component=penyusutanaset"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Penyusutan Aset Perusahaan</a></li>

		<?php } ?>

        </ul>

    </li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PD-3") OR strstr($_SESSION[akses],"PD-4") OR strstr($_SESSION[akses],"PD-5")) { ?>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Master Barang</a>

    <ul>

    	<?php if(strstr($_SESSION[akses],"PD-4")) { ?>

    	<li><a href="index.php?component=kelompokbarang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Kelompok Barang</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"PD-3")) { ?>

        <li><a href="index.php?component=barang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Data Barang</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"PD-5")) { ?>

        <li><a href="index.php?component=satuan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Satuan Barang</a></li>

        <?php } ?>

    </ul>

    </li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"JS-1") OR strstr($_SESSION[akses],"JS-2") OR strstr($_SESSION[akses],"JS-3") OR strstr($_SESSION[akses],"JS-4") OR strstr($_SESSION[akses],"JS-5") OR strstr($_SESSION[akses],"JS-6") OR strstr($_SESSION[akses],"JS-7"))) { ?>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Master Kendaraan</a>

    <ul>

    	<?php if(strstr($_SESSION[akses],"JS-5")) { ?>

    	<li><a href="index.php?component=merkkendaraan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Merk Kendaraan</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"JS-6")) { ?>

        <li><a href="index.php?component=tipekendaraan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Tipe Kendaraan</a></li>

        <?php } ?>

    	<?php if(strstr($_SESSION[akses],"JS-7")) { ?>

    	<li><a href="index.php?component=jeniskendaraan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Jenis Kendaraan</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"JS-4")) { ?>

        <li><a href="index.php?component=jenisservice"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Paket Harga Sewa</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"JS-3")) { ?>

        <li><a href="index.php?component=jenisbbm"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Jenis BBM</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"JS-2")) { ?>

        <li><a href="index.php?component=status"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Status Kendaraan</a></li>

        <?php } ?>

        <?php if(strstr($_SESSION[akses],"JS-1")) { ?>

        <li><a href="index.php?component=jeniskecelakaan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Jenis Kecelakaan</a></li>

        <?php } ?>
    </ul>

    </li>

    <?php } ?>

    <li><a href="javascript:void(0);" onclick="opencalcu();"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Kalkulator</a></li>

	<?php if(isset($_SESSION['admin'])) { ?>

    <li><a href="logout.php"><img src="images/alert2.png" align="left" hspace="1" vspace="4" width="18"/>&nbsp;Keluar</a></li>

	<?php } ?>

</ul>

</li>

<?php } ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Reminder</a>

<ul>

    <li><a href="index.php?component=reminderkontrak"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Kontrak akan Berakhir</a></li>

    <li><a href="index.php?component=reminderstnk"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar STNK akan Berakhir</a></li>

    <li><a href="index.php?component=reminderkir"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar KIR akan Berakhir</a></li>

    <li><a href="index.php?component=reminderasuransi"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Asuransi akan Berakhir</a></li>

</ul>

</li>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Kontrak</a>

<ul>

	<li><a class="arrow">Data Kontrak Berlaku</a>

   	<ul>

        <li><a href="index.php?component=kontrak&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Kontrak Baru</a></li>

        <li><a href="index.php?component=kontrak"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Data Kontrak</a></li>

    </ul>

    </li>

    <li><a href="#">Data Kontrak Kadaluarsa</a></li>

</ul>

</li>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Sales</a>

<ul>

<?php if(strstr($_SESSION[akses],"DD-7")) { ?>

    <li><a href="index.php?component=kontak&cr_klas=Customer&cr_txt=&ref=Retail"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Customer Retail</a></li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"DD-8")) { ?>

    <li><a href="index.php?component=kontak&cr_klas=Customer&cr_txt=&ref=Corporate"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Customer Corporate</a></li>

<?php } ?>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Order</a>

    	<ul>

        <li><a href="index.php?component=sretail&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Order</a></li>

        <li><a href="index.php?component=sretail"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Data Transaksi Order</a></li>

        </ul>

    </li>

    <li><a><a href="index.php?component=masterservice&tersedia=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Stok Kendaraan</a></a></li>

    <li><a href="index.php?component=kontak&cr_klas=Karyawan&cr_txt=&ref=sales"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Salesman</a></li>

    <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Check OUT/IN</a></li>

</ul>

</li>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Operational</a>

<ul>

    <li><a><a href="index.php?component=masterservice&tersedia=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Stok Kendaraan</a></a></li>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Check OUT/IN</a>

    	<ul>

        <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Check IN</a></li>

        <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Check OUT</a></li>

        </ul>

    </li>

    <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Check OUT/IN</a></li>

    <li><a class="arrow"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Extend</a>

    	<ul>

        <li><a href="index.php?component=transaksiextendstnk"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;STNK</a></li>

        <li><a href="index.php?component=transaksiextendasuransi"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Asuransi</a></li>

        <li><a href="index.php?component=transaksiextendkir"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;KIR</a></li>

        </ul>

    </li>

    <li><a href="index.php?component=transaksimutasi"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Mutasi</a></li>

    <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Replacement</a></li>

    <li><a href="index.php?component=1"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Catat Kecelakaan LALIN</a></li>

</ul>

</li>

<?php if(strstr($_SESSION[akses],"DD-6-1") OR strstr($_SESSION[akses],"DD-6") OR strstr($_SESSION[akses],"L-4") OR strstr($_SESSION[akses],"L-6")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Buku Besar</a>

<ul>

	<?php if(strstr($_SESSION[akses],"DD-6-1")) { ?>

    <li><a><a href="index.php?component=transaksiharian&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Transaksi Harian</a></a></li>

	<?php } ?>

    <?php if(strstr($_SESSION[akses],"DD-6")) { ?>

    <li><a href="index.php?component=transaksiharian"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Transaksi Harian</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-4")) { ?>

    <li><a href="index.php?component=jurnal"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Jurnal</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-6")) { ?>

    <li><a href="index.php?component=bukubesar"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Buku Besar</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"KB-2-1") OR strstr($_SESSION[akses],"KB-2") OR strstr($_SESSION[akses],"KB-3-1") OR strstr($_SESSION[akses],"KB-3") OR strstr($_SESSION[akses],"KB-1-1") OR strstr($_SESSION[akses],"KB-1")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Kas & Bank</a>

<ul>

	<?php if(strstr($_SESSION[akses],"KB-2-1")) { ?>

	<li><a href="index.php?component=kasmasuk&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Kas Masuk</a></li>

	<?php } ?>

    <?php if(strstr($_SESSION[akses],"KB-2")) { ?>

    <li><a href="index.php?component=kasmasuk"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Kas Masuk</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"KB-3-1")) { ?>

    <li><a href="index.php?component=kaskeluar&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Kas Keluar</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"KB-3")) { ?>

    <li><a href="index.php?component=kaskeluar"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Kas Keluar</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"KB-1-1")) { ?>

    <li><a href="index.php?component=transferkas&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Transfer Kas</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"KB-1")) { ?>

    <li><a href="index.php?component=transferkas"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Transfer Kas</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"PD-1-1") OR strstr($_SESSION[akses],"PD-1") OR strstr($_SESSION[akses],"PD-2") OR strstr($_SESSION[akses],"PD-6")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Persediaan</a>

<ul>

	<?php if(strstr($_SESSION[akses],"PD-1-1")) { ?>

	<li><a href="index.php?component=persediaan&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Persediaan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PD-1")) { ?>

    <li><a href="index.php?component=persediaan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Persediaan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PD-2")) { ?>

    <li><a href="index.php?component=stokopname"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Stok Barang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PD-6")) { ?>

    <li><a href="index.php?component=kartustok"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Kartu Stok</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"PB-1-1") OR strstr($_SESSION[akses],"PB-1") OR strstr($_SESSION[akses],"PB-2") OR strstr($_SESSION[akses],"PB-3-1") OR strstr($_SESSION[akses],"PB-3") OR strstr($_SESSION[akses],"PB-4-1") OR strstr($_SESSION[akses],"PB-4") OR strstr($_SESSION[akses],"PB-5") OR strstr($_SESSION[akses],"PB-6")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Pembelian</a>

<ul>

	<?php if(strstr($_SESSION[akses],"PB-1-1")) { ?>

	<li><a href="index.php?component=pembelian&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Pembelian</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-1")) { ?>

    <li><a href="index.php?component=pembelian"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Pembelian</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-2")) { ?>

    <li><a href="index.php?component=pengirimanbarangpembelian"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Penerimaan Barang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-3-1")) { ?>

    <li><a href="index.php?component=returpembelian&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Retur Pembelian</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-3")) { ?>

    <li><a href="index.php?component=returpembelian"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Retur Pembelian</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-4-1")) { ?>

    <li><a href="index.php?component=pembayaranhutang&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Pembayaran Hutang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-4")) { ?>

    <li><a href="index.php?component=pembayaranhutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Pembayaran Hutang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-5")) { ?>

    <li><a href="index.php?component=hutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Hutang Usaha</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PB-6")) { ?>

    <li><a href="index.php?component=kartuhutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Kartu Hutang Usaha</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"PJ-1-1") OR strstr($_SESSION[akses],"PJ-1") OR strstr($_SESSION[akses],"PJ-2") OR strstr($_SESSION[akses],"PJ-3-1") OR strstr($_SESSION[akses],"PJ-3") OR strstr($_SESSION[akses],"PJ-4-1") OR strstr($_SESSION[akses],"PJ-4") OR strstr($_SESSION[akses],"PJ-5") OR strstr($_SESSION[akses],"PJ-6")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Penjualan</a>

<ul>

	<?php if(strstr($_SESSION[akses],"PJ-1-1")) { ?>

	<li><a href="index.php?component=penjualan&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-1")) { ?>

    <li><a href="index.php?component=penjualan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-2")) { ?>

    <li><a href="index.php?component=pengirimanbarangpenjualan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Pengiriman Barang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-3-1")) { ?>

    <li><a href="index.php?component=returpenjualan&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Retur Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-3")) { ?>

    <li><a href="index.php?component=returpenjualan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Retur Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-4-1")) { ?>

    <li><a href="index.php?component=pembayaranpiutang&task=add"><img src="images/add_.png" align="left" hspace="1" vspace="4"/>&nbsp;Pembayaran Piutang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-4")) { ?>

    <li><a href="index.php?component=pembayaranpiutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Pembayaran Piutang</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-5")) { ?>

    <li><a href="index.php?component=piutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Daftar Piutang Usaha</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"PJ-6")) { ?>

    <li><a href="index.php?component=kartupiutang"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Kartu Piutang Usaha</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<?php if(strstr($_SESSION[akses],"L-5") OR strstr($_SESSION[akses],"L-1") OR strstr($_SESSION[akses],"L-3") OR strstr($_SESSION[akses],"L-7") OR strstr($_SESSION[akses],"L-8") OR strstr($_SESSION[akses],"L-9")) { ?>

<li class="root-menu"><a href="javascript:void(0);" class="arrow-root">Laporan</a>

<ul>

	<?php if(strstr($_SESSION[akses],"L-5")) { ?>

	<li><a href="index.php?component=aruskas"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Arus Kas</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-1")) { ?>

    <li><a href="index.php?component=rugilaba"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Rugi Laba</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-3")) { ?>

    <li><a href="index.php?component=neraca"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Neraca</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-7")) { ?>

    <li><a href="index.php?component=rekap_penjualan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Rekap Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-9")) { ?>

    <li><a href="index.php?component=rekap_retur"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Rekap Retur Penjualan</a></li>

    <?php } ?>

    <?php if(strstr($_SESSION[akses],"L-8")) { ?>

    <li><a href="index.php?component=rekap_iklan"><img src="images/invoices.png" align="left" hspace="1" vspace="4"/>&nbsp;Rekap Sewa</a></li>

    <?php } ?>

</ul>

</li>

<?php } ?>

<li class="root-menu"><a href="index.php?component=copyright" class="arrow-root">Copyright</a></li>

</ul>

</div>

<?php } ?>

<div id="content_container">

  <div id="content">

  <?php getBody($_SESSION[admin],$_GET[component],$_GET[task]);?>

  </div>

  <div class="clear" style="margin-bottom:45px;"></div>

</div>

<?php //if(isset($_SESSION[admin])) { ?>

<div id="footer">Copyright &copy; <a href="#" target="_blank">PT. Java Net International</a>.  All Rights Reserved.</div>

<?php //} ?>

</body>

</html>